package com.rabbitmq.demo.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author :wn
 * @program : demo
 * @descript : rabbitmq配置类
 * @create :2021-05-08 09:18
 */
@Configuration
public class RabbitmqConfig {
    @Bean
    public Queue queue() {
        return new Queue("Queue1", true);
    }

    @Bean
    public Queue objectQueue() {
        return new Queue("objectQueue", true);
    }
}
